import request from "@/api/http";

export const getContactListWithSelectedId = (selectedUserId) => {
    return request({
        url: '/chat/get_msg_list',
        method: 'get',
        params: {
            selected_user_id: selectedUserId
        }
    })
};

export const getContactList = () => {
    return request({
        url: '/chat/get_msg_list',
        method: 'get'
    })
};

export const getMessages = (userId: number) => {
    return request({
        url: '/chat/get_one_msg_list',
        method: 'get',
        params: {
            userId: userId
        }
    })
}

export const getPositionList = () => {
    return request({
        url: '/enterprise/get_all_jobs',
        method: 'get'
    })
}